{template 'common/header'}

<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('item_order',array('op' =>'display'))}">积分订单管理</a></li>
	<li class="active"><a href="#">订单发货</a></li>
</ul>

{if $operation == 'post'}

<div class="main">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" onsubmit='return formcheck()'>
		<input type="hidden" name="id" value="{$adv['order_id']}" />
		<div class="panel panel-default">
			<div class="panel-heading">
				订单发货
			</div>
			<?php 
			    $item=pdo_get($this->modulename . '_item', array('item_id' => $adv['item_id']));
			?>
			<div class="panel-body">
			    <div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">商品名称：</label>
					<div class="col-sm-6">
						{$item['title']}
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">姓名：</label>
					<div class="col-sm-6">
						{$adv['name']}
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">电话：</label>
					<div class="col-sm-6">
						{$adv['mobile']}
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">地址：</label>
					<div class="col-sm-6">
						{$adv['address']}
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">快递公司：</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" name="data[courier_name]" class="form-control" value="{$adv['courier_name']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">快递单号：</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" name="data[courier_number]" class="form-control" value="{$adv['courier_number']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">发货备注：</label>
					<div class="col-sm-10 col-xs-12">
							<textarea class="form-control" name="data[reback]" placeholder="虚拟商品请填写发货备注">{$adv['reback']}</textarea>
						</div>
				</div>
			</div>
		</div>
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
	</form>
</div>

{/if}
{template 'common/footer'}